package com.jk.smartelderlycare.service;

import com.jk.smartelderlycare.dto.SysPlay;
import com.jk.smartelderlycare.pojo.PagedResponse;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Description 添加描述
 * @Author hhk
 * @LastChangeDate 2024/11/15 13:10
 * @Version v1.0
 */
public interface SysPlayService {
    /**
     * @description: 后端分页查询
     * @param: [sysPlay, pageNum, pageSize]
     * @return: com.jk.smartelderlycare.pojo.PagedResponse<com.jk.smartelderlycare.dto.SysPlay>
     * @author hhk
     * @date: 2024/11/15 13:05
     */

    public PagedResponse<SysPlay> findSysPlayPaginationList( SysPlay sysPlay,  Integer pageNum, Integer pageSize);
    /**
     * @description: 新增
     * @param: [sysPlay]
     * @return: void
     * @author hhk
     * @date: 2024/11/15 13:06
     */

    public void addSysPlay(SysPlay sysPlay);
    /**
     * @description: 根据id删除
     * @param: [playId]
     * @return: void
     * @author hhk
     * @date: 2024/11/15 13:07
     */

    public void deleteSysPlayById( Long playId);
    /**
     * @description: 根据id回显
     * @param: [playId]
     * @return: void
     * @author hhk
     * @date: 2024/11/15 13:09
     */

    public SysPlay findSysPlayById( Long playId);
    /**
     * @description: 修改
     * @param: [sysPlay]
     * @return: void
     * @author hhk
     * @date: 2024/11/15 13:10
     */

    public void updateSysPlay( SysPlay sysPlay);

    /**
     * @description: 批量删除
     * @param: [ids]
     * @return: void
     * @author hhk
     * @date: 2024/11/15 13:45
     */

    public void deleteSysPlayByIds(List<Long> ids);
}
